package com.liyang.springcloud.common.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @BelongsProject: cloud-2024
 * @BelongsPackage: com.liyang.springcloud.entities
 * @Author: liyang
 * @CreateTime: 2023-12-19  18:04
 * @Description: json 封装体
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T> {

    private Integer code;
    private String message;
    private T data;

    public CommonResult(Integer code, String message) {
        this(code, message, null);
    }
}
